package com.qianchang.microfinance.view.credit.data;

import android.content.Context;

import com.qianchang.microfinance.R;
import com.dm.library.adapter.CommonAdapter;
import com.dm.library.adapter.CommonViewHolder;
import com.dm.library.bean.ContractListBean;

import java.util.List;

/**
 * 版 权: 深圳市迪蒙网络科技有限公司
 * 描 述:
 * 修 改 人: zhoulai
 * 修改时间: 2017/8/12 14:02
 */


public class ContractListAdapter extends CommonAdapter<ContractListBean> {


    public ContractListAdapter(Context mContext, List<ContractListBean> beanList) {
        super(mContext, beanList, R.layout.adapter_contract_list);
    }

    @Override
    protected void convert(CommonViewHolder holder, ContractListBean contractListBean, int position) {
        if (null != contractListBean) {
            holder.setText(R.id.tv_name, contractListBean.getName());
            holder.setText(R.id.tv_phone, contractListBean.getPhone());
        }
    }
}
